﻿using System;
using System.Collections.Generic;
using System.Text;
using Imps.Client.Core;
using Imps.Client.Pc;

namespace com.hetaoos.FetionSDK.Group
{
    public class GroupBase
    {
        private FetionSDK _frameworkWnd;

        public GroupBase(FetionSDK framework)
        {
            _frameworkWnd = framework;

        }

        public List<Imps.Client.Core.PersonalGroup> getPersonalGroupList()
        {
            List<Imps.Client.Core.PersonalGroup> list = new List<Imps.Client.Core.PersonalGroup>();

            foreach (PersonalGroup group in _frameworkWnd.AccountManager.CurrentUser.PersonalGroups)
            {
                list.Add(group);
            }
            return list;
        }
    }
}
